/**
 * @date 2006-8-2
 */

package org.nanhill.commons.servlet;

import javax.servlet.http.HttpServletRequest;

import org.nanhill.commons.http.HttpHeader;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-8-2
 */
public class RequestKit {
	public static boolean isPost(HttpServletRequest request) {
		return HttpHeader.METHOD_POST.equals(request.getMethod());
	}

	public static boolean isGet(HttpServletRequest request) {
		return HttpHeader.METHOD_GET.equals(request.getMethod());
	}
}
